import React from 'react';
import ReactDOM from 'react-dom/client';
import { store, persistor } from './store'
import { Provider } from 'react-redux';
import { BrowserRouter as Router } from 'react-router-dom'
import { PersistGate } from 'redux-persist/lib/integration/react';
import 'antd/dist/antd.less';
import App from './App';

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <Provider store={store}>
    <PersistGate persistor={persistor}>
      <Router history={Router}>
        <App></App>
      </Router>
    </PersistGate>
  </Provider>,
);
